<template>
    <div class="w-full flex justify-center md:h-730 overflow-hidden">
        <div class="topicContainer 2xl:w-3/5 xl:w-4/5 md:w-full h-full px-5 md:px-0">
            <div v-for="subject in state.document.subjects" class="topic flex flex-col mt-5 md:mt-0">

                    <TopicCard v-bind="subject" />
            </div>
        </div>
    </div>
</template>

<script lang="ts" setup>
import TopicCard from "./smallComs/topicCard.vue";
import { state } from "@utils/store";

</script>

<style lang="scss">
@media screen and (min-width: 768px) {
    .topicContainer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
        justify-content: space-around;
    }
    .topic:nth-of-type(3) .subjectImg {
        width: 20rem;
        height: 10rem;
        margin-right: 5rem;
    }
    .topicContainer .topic:nth-of-type(1) {
        height: 300px;
        padding-left: 50px;
        margin-bottom: 50px;

    }
    .topicContainer .topic:nth-of-type(2) {
        height: 300px;
        padding-left: 50px;
        margin-bottom: 50px;
    }
    .topicContainer .topic:nth-of-type(1) .topicTitle,
    .topicContainer .topic:nth-of-type(2) .topicTitle {
        font-size: 28px;
    }

    .topicContainer .topic:nth-of-type(3) .topicTitle {
        font-size: 40px;
    }
    .topicContainer .topic:nth-of-type(3) {
        flex: 100%;
        margin: 0 50px 0 50px;
        border-top: 2px solid rgba(0, 0, 0, 0.1);
        justify-content: space-around;
        flex-direction: row !important;
        padding-top: 50px;
    }
    .topicContainer .topic:nth-of-type(3) > div:first-of-type {
        order: 2;
    }
    .topicContainer .topic:nth-of-type(3) > div:last-of-type {
        order: 1;
    }
    .subjectImg {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
}

</style>